package com.wuyoucar.service;

import com.wuyoucar.common.ResultBean;
import com.wuyoucar.entity.TSafetype;
import com.wuyoucar.entity.TSafetypeitem;
import com.wuyoucar.service.Impl.TSafetypeServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.LinkedHashMap;
import java.util.List;

@Component
@FeignClient(value = "provider-insurance-type",fallback = TSafetypeServiceImpl.class)
public interface TSafetypeService {

    //查询所有险种信息
    @RequestMapping("/tsafetype/allrisks")
    public List<TSafetype> getAllTSafetype();

    //查询具体险种信息
    @RequestMapping("/tsafetype/AllSafeTypeItem")
    public List<TSafetypeitem> getAllTSafetypeitem();

    @RequestMapping("/tsafetype/FillinVehicleiFnormation")
    public ResultBean FillinVehicleiFnormation(@RequestBody LinkedHashMap<String,String> mymap);

    //查询单个险种信息
    @RequestMapping("/tsafetype/getAllTSafetypeByid")
    public ResultBean getAllTSafetypeByid(@RequestParam("safetypeid") Integer safetypeid);
}
